--本程序绘制九宫格以及变体
function love.load()
	font = love.graphics.newFont("font/SourceHanSansCN-Normal.otf",12)
end
function love.draw()
  love.graphics.setBackgroundColor(255, 255, 255)
  love.graphics.setColor(0, 0, 0)
  love.graphics.setFont(font)
  
  --绘制窗体
  love.graphics.setLineWidth(5)
  local group1x=10
  local group1y=10
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  love.graphics.line(group1x+120,group1y+120,group1x+180,group1y+180)
  
  group1x=10
  group1y=180
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  
  group1x=10
  group1y=350
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  
  group1x=180
  group1y=10
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
 
  group1x=180
  group1y=180
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  
  group1x=180
  group1y=350
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
    
  group1x=350
  group1y=10
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
 
  group1x=350
  group1y=180
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  
  love.graphics.setColor(255, 0, 0)
  group1x=350
  group1y=350
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  
  group1x=350
  group1y=350
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  
end